import { get } from './index'

export default function () {
  return new Promise(async res => {
    let flag = false
    try {
      const resData = await get('/auth/access')
      flag = resData.status === 200
    } catch (error) {
      console.error(error.message)
    }
    res(flag)
  })
}
